<?php

namespace app\common\service;


/**
 * 运营商服务类
 */
class Operator
{
    private $appkey = '1609d571a79b4e8b9434c06e28385083';
    private $app_secret = 'ff0e3bb90a314181a67bc8c8564b8dee';
    private $app_code = '1c506fe0fdf941eab42ece38791b6914';

    /**
     * @param $phoneNum
     * @return array
     */
    function checkPhone($phoneNum): array
    {
        $url = "https://isp.qxt800.com/carrier?apikey={$this->appkey}&mobile={$phoneNum}";
       // dd($url);
        $res = curl_get_https($url);
        dd($res);
        return json_decode($res,true);
    }
}